package com.lsp.server.product.service;

import com.lsp.server.product.domain.po.ProductAttrValues;
import com.lsp.server.product.mapper.ValuesMapper;
import org.apache.commons.lang3.StringUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @ClassName ValusService
 * @Description 商品属性值业务层
 * @Author Mr Hao
 * @Date 2021/11/24 10:06
 */
@Service
public class AttrValusService {
    @Autowired
    private ValuesMapper valuesMapper;

    /**
     * 根据查询数据id
     * @param id
     * @return
     */
    public Object getAll(Integer id) {
        List<ProductAttrValues> list = valuesMapper.getAll(id);
        if (null == list){
            return "";
        }
        return list;
    }
}
